//MyAccessSpec.java
package popedom;
class Cat
{
	private int age;
	private int weight;
	Cat(int a,int w)
	{
		age=a;
		weight=w;
	}
	public int getAge()
	{
		return age;
	}
	public int getWeight()
	{
		return weight;
	}
	void setAge(int a)
	{
		age=a;
	}
	void setWeight(int w)
	{
		weight=w;
	}

	void meow()
	{
		System.out.println("Meow...");
	}
}
public class MyAccessSpec
{
	public static void main(String[] args)
	{
		Cat cat=new Cat(1,1);
		System.out.println("Cat     age:"+cat.getAge()+"\tweight:"+cat.getWeight());
		cat.setAge(2);
		cat.setWeight(3);
		System.out.println("Cat     age:"+cat.getAge()+"\tweight:"+cat.getWeight());
	}
}